home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
killdll
/
form1.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
1KB
|
58 lines
VERSION 2.00
Begin Form Form1
Caption = "Kill DLL"
ClientHeight = 1515
ClientLeft = 1455
ClientTop = 2190
ClientWidth = 2595
Height = 1920
Left = 1395
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 1515
ScaleWidth = 2595
Top = 1845
Width = 2715
Begin CommandButton Command1
Caption = "Dump DLL"
Default = -1 'True
Height = 315
Left = 540
TabIndex = 1
Top = 1080
Width = 1215
End
Begin TextBox Text1
Height = 315
Left = 120
TabIndex = 0
Top = 600
Width = 2355
End
Begin Label Label1
Caption = "DLL Filename to unload"
Height = 255
Left = 120
TabIndex = 2
Top = 240
Width = 2295
End
End
Sub Command1_Click ()
Dim dHndl%
dHndl = LoadLibrary((text1.text))
If dHndl >= 32 Then
Do While GetModuleUsage(dHndl) > 0
FreeLibrary (dHndl)
Loop
MsgBox "DLL Dumped"
End If
End Sub
Sub Form_Load ()
text1.text = Command$
End Sub